home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ASP Advantage 1994 2nd Q2
/
The Association of Shareware Professionals - The Official ASP Advantage (2nd Quarter)(1994).bin
/
contents
/
lprint.doc
< prev
next >
Wrap
Text File
|
1993-08-11
|
10KB
|
204 lines
LPRINT.EXE - Printer module for Shareware Solutions.
Copyright 1993 Advantage Plus Dist., Inc. All rights reserved.
DESCRIPTION
The LPRINT program is a compact module designed to print program labels
on tractor feed label stock. The program can be called from either the
SSLIB or COPYCAT program. It can also be called from batch files or custom
programs to print multiple copies of program labels. It is called by using
the /B switch in copycat and by using the filename to execute feature in
the SSLIB setup program.
LPRINT allows you to create your own labels. You may use any number of
lines and make the lines any length. You can mix printer codes anywhere
on a label line to create mixed font labels and special characters. The
program sends printer codes you enter so any tractor feed printer is
supported.
By creating special purpose batch files you can have the LPRINT module
print as many copies of a program label as you desire without having to
copy the program each time.
The LPRINT program incorporates "self modifying code". This feature
allows it to store all configuration information internally. By not
having separate configuration files you can have multiple copies of LPRINT
each having a different configuration. This way you can keep different
copies of LPRINT for the different labels you print. Note: It is very
IMPORTANT that you do not rename LPRINT until after it has been configured.
It cannot modify it own code unless it's name is LPRINT.EXE. After it has
been configured it can be renamed and/or compressed using an EXE compress-
or such as LZEXE or PKLITE.
HOW IT WORKS
The LPRINT program is called by passing it two parameters: /R and /P.
The /R switch is the RPT filename. Ex: /Raccoting would be the ACCOTING.RPT
file. The /P switch is the program number. Ex: /P1660. Both the SSLIB
program and the COPYCAT program pass these parameters in the %2 and %6
variables.
The program must be setup before it can be used. To access setup run
the program with no command line parameters.
The program outputs 5 pieces of label information and can accept any
printer codes. Label variables are preceded by the ~ and printer codes
by the @.
~F ilename - The descriptive filename
~D escription - The full description
~N umber of disks - 1 of 3, 2 of 3 etc...
~P rogram number - The program's file number
~C ategory filename - Category or RPT filename
The following is a list of standard Epson printer codes. They will
work for most Epson compatible printers. If these codes do not work
you should check your printer's manual for printer codes specific to
your printer. Printer codes must be preceded by the @ character and
entered as decimal numbers. They must be delimited by the - symbol.
Ex: @27-15
@27-15 - Compressed print on @27-69 - Emphasized on
@27-18 - Compressed print off @27-70 - Emphasized off
@27-52 - Italics on @27-119-1 - Double high on
@27-18 - Italics off @27-119-0 - Double high off
@27-87-1 - Double width on @27-45-1 - Underlining on
@27-87-0 - Double width off @27-45-0 - Underlining off
Printer codes can be entered on any line and mixed with label variables
and literal text data. Each printer code must be preceded by the @
character and the ESC code (27). See LPRINT.DOC for more detailed
instructions.
Tips on setting up labels:
1. The easiest way to print a full description label is to place a
single compressed print command in the Printer Setup field. This
will cause all fields to be printed in compressed print. You need
only to format the fields so they can fit on your labels.
2. When you turn a print feature on make sure you turn it off at some
point. If you do not the printer will remain in it's current
state and print incorrectly on the next label.
3. Be sure to include all necessary information on the label including
the program name, number of disks, program number, and/or the
description.
4. When printing the full description the program will automatically
print each line correctly. The first description line will contain
as much of the description as it will hold, the second description
line will begin where the first ended and so on. Make sure you use
enough description lines to allow the entire full description to
print.
5. If you use the Double-high feature available on some printers you
can make the title line larger without changing the length of the
line. This means everything will fit even if you use compressed
or subscript printing.
Following are some example setup configurations:
EXAMPLE #1
LPRINT.EXE - Shareware Solutions Printing Module. Current configuration:
────────────────────────────────────────────────────────────────────────────────
<A> Printer setup string: @27-15 <C> Characters per line: 70
<B> Number of lines: 8 <D> Printer LPT port: 1
<1> Line: ~F - ~P
<2> Line: ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
<3> Line: ~D
<4> Line: ~D
<5> Line: ~D
<6> Line: ~D
<7> Line: ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
<8> Line: Shareware Solutions 919-362-8212 ~N
────────────────────────────────────────────────────────────────────────────────
This configuration would print a 8 line label. The printer set-up
string would set the printer into compressed print mode so the entire label
would be printed compressed. Each line would have a maximum of 70 char-
acters. The high ASCII character ▀ (ALT-223) is used as a delimiter line
for the label header and footer. The FILENAME and PROGRAM NUMBER is on line
1, DESCRIPTION is on lines 3-6 and the NUMBER OF DISKS is on line 8. This
configuration mimics the Full description 5 1/4 inch (4x1 x 7/16) label
printed by the SSLIB program.
This label is preconfigured in the copy of the LPRINT.EXE program that
has been renamed FULL5.EXE. You may use this configuration by calling
FULL5.EXE from the SAMPLE.BAT file.
EXAMPLE #2
LPRINT.EXE - Shareware Solutions Printing Module. Current configuration:
────────────────────────────────────────────────────────────────────────────────
<A> Printer setup string: @27-15 <C> Characters per line: 41
<B> Number of lines: 17 <D> Printer LPT port: 1
<1> Line: ~F - ~P
<2> Line: ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
<3> Line: ~D
<4> Line: ~D
<5> Line: ~D
<6> Line: ~D
<7> Line: ~D
<8> Line: ~D
<9> Line: ~D
<10> Line: ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
<11> Line: Shareware Solutions 919-362-8212 ~N
<12> Line:
<13> Line:
<14> Line:
<15> Line:
<16> Line:
<17> Line:
────────────────────────────────────────────────────────────────────────────────
This configuration would print an 11 line label. The blank lines would
position the printer for the next label. The printer set-up string would
set the printer into compressed print mode so the entire label would be
printed compressed. Each line would have a maximum of 70 characters. The
high ASCII character ▀ (ALT-223) is used as a delimiter line for the label
header and footer. The FILENAME and PROGRAM NUMBER is on line 1, DESC-
RIPTION is on lines 3-6 and the NUMBER OF DISKS is on line 8. This config-
uration mimics the Full description 3 1/2 inch (2 & 3/4 x 2 & 3/4) label
printed by the SSLIB program.
This label is preconfigured in the copy of the LPRINT.EXE program that
has been renamed FULL3.EXE. You may use this configuration by calling
FULL5.EXE from the SAMPLE.B